package com.ruoyi.project.wms.logistics.chuhuo.outgoods.service.impl;

import java.util.List;

import com.ruoyi.project.wms.outgoods.domain.WmsOutGoods;
import com.ruoyi.project.wms.outgoods.mapper.WmsOutGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wms.logistics.chuhuo.outgoods.service.IChuWmsOutGoodsService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-29
 */
@Service
public class ChuWmsOutGoodsServiceImpl implements IChuWmsOutGoodsService
{
    @Autowired
    private WmsOutGoodsMapper wmsOutGoodsMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param ogid 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public WmsOutGoods selectWmsOutGoodsById(Long ogid)
    {
        return wmsOutGoodsMapper.selectWmsOutGoodsById(ogid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param wmsOutGoods 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<WmsOutGoods> selectWmsOutGoodsList(WmsOutGoods wmsOutGoods)
    {
        return wmsOutGoodsMapper.selectWmsOutGoodsList(wmsOutGoods);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param wmsOutGoods 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertWmsOutGoods(WmsOutGoods wmsOutGoods)
    {
        return wmsOutGoodsMapper.insertWmsOutGoods(wmsOutGoods);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param wmsOutGoods 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateWmsOutGoods(WmsOutGoods wmsOutGoods)
    {
        return wmsOutGoodsMapper.updateWmsOutGoods(wmsOutGoods);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmsOutGoodsByIds(String ids)
    {
        return wmsOutGoodsMapper.deleteWmsOutGoodsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param ogid 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteWmsOutGoodsById(Long ogid)
    {
        return wmsOutGoodsMapper.deleteWmsOutGoodsById(ogid);
    }
}
